<!DOCTYPE html>
<html>
<head>
    <title>首页 {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>

    <link href="__TMPL__/public/assets/simpleboot3/themes/simpleboot3/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/js/layui/css/layui.css" media="all">
    <link href="__TMPL__/public/assets/css/tube.css" rel="stylesheet">
    <link href="__TMPL__/public/assets/css/user-center.css" rel="stylesheet">
    <style class="">
        .user-nav{display: flex}
        .user-nav__item{background-color: #eceeee;flex: 1;border-bottom:2px solid #dcdcdc;text-align: center;height: 80px;line-height: 80px;font-size: 24px;}
        .user-nav__item.active,.user-nav__item:hover{color: #2c39ea;}
        .templatemo-body{padding: 0;}
    </style>
</head>
<hook name="before_head_end"/>

<body class="body-all">
    <div class="templatemo-content">'
        <!--  我的应用左侧 -->
        <include file="public@tube"/>
        <!--  我的应用左侧 -->

        <!--  修改资料-->
        <div class="templatemo-body">
            <div class="user-nav">
                <a class="user-nav__item" href="/user/profile/center.html">修改资料</a>
                <span class="user-nav__item active">实名认证</span>
                <a class="user-nav__item" href="/user/profile/password.html">修改密码</a>
            </div>
            <form style="padding: 30px" class="js-ajax-form" action="{:url('user/profile/editAuthInfoPost')}" method="post">
                <div class="auth-user-input-box">
                    <label for="input-user_nickname" class="">真实姓名</label>
                    <input type="text" class="form-control " id="input-user_nickname" placeholder="真实姓名"
                           name="user_real_name" value="{$auth_info['user_real_name'] |default=''}">
                </div>

                <div class="auth-user-input-box">
                    <label for="input-user_num" class="">身份证号</label>
                    <input class="form-control " type="text" id="input-user_num"
                           placeholder="" name="user_card_number"
                           value="{$auth_info['card_number'] |default=''}">
                </div>

                <div class="auth-user-car-box">
                    <label class="">身份证正面</label>
                    <div style="">
                        <input type="hidden" name="card_img1" id="card_img1"
                               value="{$auth_info['card_img1'] |default=''}">
                        <a href="javascript:uploadOneImage('图片上传','#card_img1');">
                            <if condition="!empty($auth_info['card_img1'])">
                                <img src="{$auth_info['card_img1']}"
                                     id="card_img1-preview"
                                     width="135" style="cursor: pointer"/>
                                <else/>
                                <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                     id="card_img1-preview"
                                     width="135" style="cursor: pointer"/>
                            </if>
                        </a>
                    </div>
                </div>
                <div class="auth-user-car-box">
                    <label class="">身份证反面</label>
                    <div style="">
                        <input type="hidden" name="card_img2" id="card_img2"
                               value="{$auth_info['card_img2'] |default=''}">
                        <a href="javascript:uploadOneImage('图片上传','#card_img2');">
                            <if condition="!empty($auth_info['card_img1'])">
                                <img src="{$auth_info['card_img1']}"
                                     id="card_img2-preview"
                                     width="135" style="cursor: pointer"/>
                                <else/>
                                <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                     id="card_img2-preview"
                                     width="135" style="cursor: pointer"/>
                            </if>
                        </a>
                    </div>
                </div>

                <div class="">
                    <if condition="$status == '审核通过'">
                        <span class="btn btn-primary">审核通过</span>
                    <elseif condition="$status == '审核中'"/>
                        <span class="btn btn-primary">审核中</span>
                    <else />
                        <button type="submit" class="btn btn-primary js-ajax-submit">提交</button>
                    </if>
                </div>
            </form>
        </div>
        <!--  修改资料-->
    </div>
</body>
<include file="public@scripts"/>
</html>